wget https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/4.2/multiverse/binary-amd64/mongodb-org-server_4.2.0_amd64.deb
wget https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/4.2/multiverse/binary-amd64/mongodb-org-tools_4.2.0_amd64.deb
sudo dpkg -i mongodb-org-server_4.2.0_amd64.deb
sudo dpkg -i mongodb-org-tools_4.2.0_amd64.deb
cat>"start_mg.sh"<<EOF
mongod –dbpath ~/mongodb/ –fork –logpath=~/mongodb/mongodb.log –bind_ip_all
EOF


